import 'package:flutter/material.dart';
import 'package:flutter_app/getx/snackbar/view.dart';
import 'package:flutter_app/transit_page.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:get/get.dart';
import 'config/app_theme.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      title: 'Material App',
      debugShowCheckedModeBanner: false,
      theme: themeData,

      ///路由管理
      getPages: [
        GetPage(name: '/', page: () => TransitPage()),
        GetPage(name: '/other', page: () => other()),
      ],
      // home: TransitPage(),
      builder: (BuildContext context, Widget child) {
        return FlutterSmartDialog(child: child);
      },
    );
  }
}
